<!-- Begining of users list -->

<!--{*
/**
* @author Bimal Poudel
* @copyright since 2006, Bimal Poudel
* @package Smarty Framework
* @support http://www.odesk.com/users/~~dd91d11caed0cdce
* @contact http://www.sanjaal.com
* @company Sanjaal Corps
*/

Created on: 2011-03-26 02:03:16 265
*}-->

<div class="information">
	<ul class="links">
		<li><a href="users-add.php"><img src="{'add'|icon}" title="Add users" alt="Add users" /> Add users</a></li>
	</ul>
</div>

<div class="clear"><!--{*  style="clear:both;" *}--></div>

<!--{*
<div class="search-form">
<form method="post" action="users-search.php">
	<table>
		<tr>
			<th>Name</th>
			<th>Comments</th>
			<th>&nbsp;</th>
		</tr>
		<tr>
			<td><input type="text" name="search[name]" value="" style="width:200px;" /></td>
			<td><input type="text" name="search[comments]" value="" style="width:200px;" /></td>
			<td><input type="submit" name="search-button" value="Search" class="submit" /></td>
		</tr>
	</table>
</form>
</div>
*}-->

<!-- paginator -->
{if $pagination->has_pages()}
<div class="paginator">
	Jump to page:

	<!-- wrap with <ul>...</ul> tags when using ulli=true parameter. -->
	<!-- <ul> -->
	{paginate separator=' ' ulli=false source=$pagination}
	<!-- </ul> -->
</div>
{/if}

<form id="users-list-form" name="users-list-form" method="post" action="users-blockaction.php">
<table class="data" id="data-table">

<!--{* <caption>List of users</caption> *}-->

<thead>
	<tr class="thead">
	  <th><input type="checkbox" id="users-checkall" name="checkallentities" value="checkallentities" /></th>
		<th class="th-sn">S.N.</th>
		<th class="th-delete">?</th>
		<th>User Name</th>

		<!--{* Column Headers *}-->
		<th>User Nick</th>
		<th>User Fullname</th>

		<th class="th-menus">Sort/Actions</th>
	</tr>
</thead>

<tbody>
{section name='l' loop=$userss}
	<tr class="{cycle values='A,B'}">
	  <td><input type="checkbox" name="users[]" value="{$userss[l].user_id}" /></td>
		<td class="r">{$smarty.section.l.index_next+$pagination->begining_entry()}.</td>
		<td><a class="delete" href="users-delete.php?id={$userss[l].user_id}&amp;code={$userss[l].code}">{icon name='delete'}</a></td>
		<td><a href="users-details.php?id={$userss[l].user_id}&amp;code={$userss[l].code}">{$userss[l].user_name}</a></td>

		<!--{* Column Data *}-->
		<td>{$userss[l].user_nick}</td>
		<td>{$userss[l].user_fullname}</td>
		
		<!--{* Management Icons, without being wrapped anymore *}-->
		<td class="nowrap">
			<a class="edit" href="users-sort.php?id={$userss[l].user_id}&amp;direction=up">{icon name='up'}</a>
			<a class="edit" href="users-sort.php?id={$userss[l].user_id}&amp;direction=down">{icon name='down'}</a>
			<a class="edit" href="users-edit.php?id={$userss[l].user_id}&amp;code={$userss[l].code}">{icon name='edit'}</a>		</td>
	</tr>
{sectionelse}
	<tr class="error">
		<td>-</td>
		<td>-</td>
		<td>-</td>
		
		<!--{* Empty Cells *}-->
		<td>-</td>
		<td>-</td>

		<td>-</td>
		<td>-</td>
	</tr>
{/section}
</table>
<div class="block-actions">
<!--{*
	With selected, <input type="hidden" name="action" value="nothing" />
	<select name="actions" id="actions">
		<option value="delete">Delete</option>
		<option value="disable">Disable</option>
		<option value="enable">Enable</option>
		<option value="prune">Prune</option>
		<option value="nothing" selected="selected">Nothing</option>
	</select>
	<input type="submit" name="submit-button" id="submit-button" value="Perform!" />
*}-->
</div>
</form>

<!-- paginator -->
{if $pagination->has_pages()}
<div class="paginator">
	<span class="paginator-notice">Jump to page:</span>
	{paginate separator=' ' ulli=false source=$pagination}
</div>
{/if}

<div class="warning">
	<p><img src="images/24/001_30.png" class="icon-warning" alt="" title="" /> <strong>Warning</strong>:</p>
	<p>DO NOT click on <strong>DELETE icon</strong>, unless you are sure of it. You may permanently lose a record from the database.</p>
</div>

<!-- Handlers, Ajax, Validators -->
<!-- Javascript Validators -->
{js src='validators/users/list.js' validator=true}

<!-- End of users List -->